﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Quick.Common.Plugin
{
    public interface IExtensionMessage
    {
        event EventHandler<ExtensionEventArgs> ExtensionChanged;
        List<Extension> ExtensionList { get; }

        void AddExtensions(List<Extension> extensions);

        void AddExtension(Extension extensions);
    }
    public class Extension
    {
        public string Point { get; set; }
        public List<dynamic> Items { get; set; }

        public Extension()
        {

        }

        public Extension(string point, List<dynamic> items)
        {
            this.Point = point;
            this.Items = items;
        }
    }

    public class ExtensionEventArgs : EventArgs
    {
        public Extension Extension { get; set; }
    }
}